home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 2 / Atari Mega Archive CD - Volume 2.iso / minix / up1510b.tgz / up1510b / src / commands / nroff / tmac.an < prev    next >
Text File  |  1990-07-23  |  6KB  |  253 lines

  1. .\" **************************************************************************
  2. .\"
  3. .\" -man package for nroff. not quite unix(tm), but working...
  4. .\"
  5. .\" usage: nroff -man file [...]
  6. .\"
  7. .\" note to hackers: if you add things here, make sure there are no blank
  8. .\" lines. they will find their way into the text. use comments (.\") to
  9. .\" make space.
  10. .\" 
  11. .\" included here are: TH, SH, SS, IP, PP, LP, RS, RE, I, B, BI,
  12. .\" 
  13. .\" see end of this file for usage example
  14. .\"
  15. .\" v0.99 2/25/90 rosenkra@hall.cray.com (Bill Rosenkranz)
  16. .\" freely distributable (no copyright, etc.)
  17. .\" 
  18. .\" **************************************************************************
  19. .\"
  20. .\" this is a date string (e.g. 22:20:37 2/25/90) accessible via \*(DA in
  21. .\" the text
  22. .\"
  23. .ds DA "\n(hh:\n(mm:\n(ss \n(mo/\n(dy/\n(yr"
  24. .ds S s
  25. .ds ` "`"
  26. .ds ' "'"
  27. .\"
  28. .\" --------------------------------------------------------------------------
  29. .\" main page heading
  30. .\"
  31. .\" fields are usually: 1-name, 2-section, 3-section name, 4-version, 5-date
  32. .\" 1,2,3 are on header, 4,5 and page on footer. empty strings are skipped
  33. .\" by making the arg "".
  34. .\"
  35. .de TH
  36. .m1 1
  37. .in 0
  38. .po 0
  39. .lt 65
  40. .ll 65
  41. .tl |$1 ($2)|$3|$1 ($2)|
  42. .fo |$4|$5|%|
  43. .in 5
  44. .ll 65
  45. ..
  46. .\" --------------------------------------------------------------------------
  47. .\" start relative indent (always 5 spaces...sorry)
  48. .\"
  49. .de RS
  50. .sp
  51. .in +5
  52. ..
  53. .\" --------------------------------------------------------------------------
  54. .\" end relative indent
  55. .\"
  56. .de RE
  57. .sp
  58. .in -5
  59. ..
  60. .\" --------------------------------------------------------------------------
  61. .\" indented paragraph with tag (from this line)
  62. .\"
  63. .de IP
  64. .br
  65. .sp 1
  66. .in 5
  67. \&$1 $2 $3 $4 $5 $6 $7 $8 $9
  68. .br
  69. .in +5
  70. ..
  71. .\" --------------------------------------------------------------------------
  72. .\" start a new indented paragraph
  73. .\"
  74. .de pp
  75. .sp 1
  76. .in 5
  77. .ti +5
  78. ..
  79. .\" --------------------------------------------------------------------------
  80. .\" start a new unindented paragraph
  81. .\"
  82. .de PP
  83. .sp 1
  84. .in 5
  85. ..
  86. .\" --------------------------------------------------------------------------
  87. .\" start a new unindented paragraph (same as PP)
  88. .\"
  89. .de LP
  90. .sp 1
  91. .in 5
  92. ..
  93. .\" --------------------------------------------------------------------------
  94. .\" main section heading
  95. .\"
  96. .de SH
  97. .sp 1
  98. .ne 3
  99. .in 5
  100. .ti -5
  101. .\".bo
  102. \&$1 $2 $3 $4 $5 $6 $7 $8 $9
  103. .br
  104. ..
  105. .\" --------------------------------------------------------------------------
  106. .\" subsection heading, same indent
  107. .\"
  108. .de SS
  109. .sp 1
  110. .ne 3
  111. .in 5
  112. .\".bo
  113. \&$1 $2 $3 $4 $5 $6 $7 $8 $9
  114. .br
  115. ..
  116. .\" --------------------------------------------------------------------------
  117. .\" Italic text
  118. .\"
  119. .de I
  120. \&\fI$1\fR
  121. ..
  122. .\" --------------------------------------------------------------------------
  123. .\" Bold text
  124. .\"
  125. .de B
  126. \&\fB$1\fR
  127. ..
  128. .\" --------------------------------------------------------------------------
  129. .\" Italic Roman text
  130. .\"
  131. .de IR
  132. \&\fI$1\fR$2
  133. ..
  134. .\" --------------------------------------------------------------------------
  135. .\" Bold Roman text
  136. .\"
  137. .de BR
  138. \&\fB$1\fR$2
  139. ..
  140. .\" --------------------------------------------------------------------------
  141. .\" Bold Italic text
  142. .\"
  143. .de BI
  144. \&\fB$1\fI$2\fR
  145. ..
  146. .\" --------------------------------------------------------------------------
  147. .\" small text
  148. .\"
  149. .de SM
  150. \&\fB$1\fR
  151. ..
  152. .\" **************************************************************************
  153. .\" example:
  154. .\" 
  155. .\"     .\" this is a comment...
  156. .\"     .TH MYCMD 1 "Commands Manual" "Version 1.0" "\*(DA"
  157. .\"     .SH NAME
  158. .\"     mycmd - something unix-like        \" this is a comment...
  159. .\"     .SH SYNOPSIS
  160. .\"     mycmd [options] file [...]
  161. .\"     .SH DESCRIPTION
  162. .\"     This is a test for showing how to use the
  163. .\"     nroff(1)
  164. .\"     man package. It shows how to use .TH, .SH, .PP, .I, and .IP
  165. .\"     commands.
  166. .\"     .PP
  167. .\"     This will be a new paragraph. You can also use normal
  168. .\"     nroff(1)
  169. .\"     commands in the text. Most used ones are:
  170. .\"     .IP '\\\\\|"'
  171. .\"     This is the comment command. Note how you have to quote this
  172. .\"     sucker! You'll probably never have to write an
  173. .\"     nroff(1)
  174. .\"     manpage, so don't worry about it.
  175. .\"     .IP nf
  176. .\"     No fill mode (the normal mode is fill mode where things get
  177. .\"     justified right and left).
  178. .\"     .IP fi
  179. .\"     Re-enter fill mode.
  180. .\"     .IP br
  181. .\"     Break line here no matter what.
  182. .\"     .IP sp
  183. .\"     Vertical space (also causes a break to occur).
  184. .\"     .sp
  185. .\"     Note that to continue an indent and make a new paragraph (as
  186. .\"     is the case here), just put in a space.
  187. .\"     .PP
  188. .\"     Now we should be at a new paragraph.
  189. .\"     .PP
  190. .\"     And now we should be at a another new paragraph.
  191. .\"     .SH AUTHOR
  192. .\"     .nf
  193. .\"     Bill Rosenkranz
  194. .\"     rosenkra@hall.cray.com
  195. .\"     .fi
  196. .\" 
  197. .\" here is the output of "nroff -man mycmd.man":
  198. .\" 
  199. .\" 
  200. .\"     MYCMD (1)                Commands Manual                MYCMD (1)
  201. .\" 
  202. .\" 
  203. .\" 
  204. .\"     NAME
  205. .\"          mycmd - something unix-like  
  206. .\" 
  207. .\"     SYNOPSIS
  208. .\"          mycmd [options] file [...] 
  209. .\" 
  210. .\"     DESCRIPTION
  211. .\"          This  is a test for showing how to use the nroff(1) man
  212. .\"          package.  It shows how to use .TH, .SH,  .PP,  .I,  and
  213. .\"          .IP commands.  
  214. .\" 
  215. .\"          This will  be a new paragraph.  You can also use normal
  216. .\"          nroff(1) commands in the text.  Most used ones are: 
  217. .\" 
  218. .\"          \"  
  219. .\"               This is the comment command.  Note how you have to 
  220. .\"               quote this sucker!  You'll probably never have  to
  221. .\"               write  an  nroff(1)  manpage, so don't worry about
  222. .\"               it.  
  223. .\" 
  224. .\"          nf  
  225. .\"               No fill mode (the normal mode is fill  mode  where
  226. .\"               things get justified right and left).  
  227. .\" 
  228. .\"          fi  
  229. .\"               Re-enter fill mode.  
  230. .\" 
  231. .\"          br  
  232. .\"               Break line here no matter what.  
  233. .\"   
  234. .\"          sp  
  235. .\"               Vertical space (also causes a break to occur).  
  236. .\" 
  237. .\"               Note  that  to  continue  an indent and make a new
  238. .\"               paragraph (as is the case here),  just  put  in  a
  239. .\"               space.  
  240. .\" 
  241. .\"          Now we should be at a new paragraph.  
  242. .\"    
  243. .\"          And now we should be at a another new paragraph.  
  244. .\" 
  245. .\"     AUTHOR
  246. .\"          Bill Rosenkranz
  247. .\"          rosenkra@hall.cray.com
  248. .\" 
  249. .\"     [blank spaces removed here...]
  250. .\" 
  251. .\"     Version 1.0             22:20:37 2/25/90                        1
  252. .\" 
  253.